package com.mrzhang.glpt.gateway;

import com.mrzhang.common.annotation.EnableGlptAuthExceptionHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

@SpringBootApplication //(exclude={DataSourceAutoConfiguration.class})
@EnableZuulProxy
@EnableDiscoveryClient
@EnableGlptAuthExceptionHandler//构造自定义异常处理 自动注入Bean
@MapperScan("com.mrzhang.glpt.gateway.common.dao")
public class GlptGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GlptGatewayApplication.class, args);
    }

}
